﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=ExamSys.ExamSysName%> <%=ExamSys.ExamSysDesc%></title>
    <link type='text/css' href='../css/style.css' rel='stylesheet' media='screen' />
    <style>
    .exregulation
    {
        font-size:14px;color:#333;border:solid 1px #ebeff9;padding:5px;
        scrollbar-face-color:#FFFFFF;
        scrollbar-highlight-color:#FFFFFF;
        scrollbar-3dlight-color:#ebeff9;
        scrollbar-darkshadow-color:#ebeff9;
        scrollbar-Shadow-color:#FFFFFF;
        scrollbar-arrow-color:#ebeff9;
        scrollbar-track-color:#ffffff;
    }
    </style>
    <script type="text/javascript" src="../js/jquery/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="../js/jquery/jquery.cookie.js"></script>
    <script>
        var COOKIE_NAME = "<%=ExamSys.cookies_name.Trim() %>";
        function logout() {
            $.cookie(COOKIE_NAME, "", { path: '/', expires: -1 });
            window.location.href = "../login.aspx";
            return false;
        }
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="page">

        <div class="banner">
            <div class="banner_right"></div>
        </div>
        <div class="topbar"><h1><%=ExamSys.ExamSysName%></h1></div>
        <div class="topmenu">
            <div class="welcome">
            <%=Resources.labels.welcome %> <asp:Label ID="Label5" runat="server" Text=""></asp:Label> &nbsp;|&nbsp;
            <A class=mod_userinfo_logout title=<%=Resources.labels.Logout %> onclick="return logout()" href="javascript:void(0);"><SPAN><%=Resources.labels.Logout %></SPAN></A></div>
        </div>

        <div class="main">
    	<table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td align=left><b><%=Resources.labels.userInfo%></b></td></tr>
        </table>
        <br />

        <table class="grid" border="0" cellspacing="0" cellpadding="0" width="100%">
            <tbody>
                <tr>
                    <td width="60px"><%=Resources.labels.stuNumber%>：</td><td align=left> <asp:Label ID="Label1" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td><%=Resources.labels.stuName%>：</td><td align=left> <asp:Label ID="Label2" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td><%=Resources.labels.password%>：</td><td align=left> <asp:Label ID="Label3" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td><%=Resources.labels.email%>：</td><td align=left> <asp:Label ID="Label4" runat="server" Text=""></asp:Label></td>
                </tr>
            </tbody>
        </table>
        <br />
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td>
            <asp:TextBox ID="TextBox1" CssClass="exregulation" runat="server" Height="240px" TextMode="MultiLine" 
            Width="99%"></asp:TextBox>
            <br /><br />
            <asp:Button ID="agreebtn" CssClass="button" runat="server" Text="阅读考场规则(10)" onclick="Button1_Click" />
            </td></tr>
        </table>
        </div>

        
        <div class="footer">
        <div class="bar"></div>
            <table class="tabFooter" border="0" cellspacing="0" cellpadding="0" width="100%">
    	        <tr>
    		        <td style="text-align:center;font-size:0.8em;"><%=Footer.Coptright%></td>
    	        </tr>
            </table>
        </div>
    </div>
    <script>
        var d = document.getElementById("agreebtn");
        d.disabled = true;
        var speed = 1000; //速度
        var wait = 10; //停留时间
        function updateinfo() {
            if (wait == 0) {
                d.value = "<%=Resources.labels.iagree%>";
                d.disabled = false;
            }
            else {
                d.value = "<%=Resources.labels.r_exregulati%>(" + wait + ")";
                wait--;
                window.setTimeout("updateinfo()", speed);
            }
        }
        updateinfo();
    </script>
    </form>
</body>
</html>
